import 'package:fish_redux/fish_redux.dart';

enum PwdLoginAction { login, register ,loading,switchLogin}

class PwdLoginActionCreator {
  static Action onRegisterAction() {
    return const Action(PwdLoginAction.register);
  }

  static Action onSwitchAction() {
    return const Action(PwdLoginAction.switchLogin);
  }

  static Action onLoginAction() {
    return const Action(PwdLoginAction.login);
  }

  static Action onLoadingAction(bool isLoading) {
    return   Action(PwdLoginAction.loading,payload: isLoading);
  }
}
